/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bs.stock.modelo;

import java.io.Serializable;

/**
 *
 * @author ctrosch
 */
//@Embeddable
public class ComprosicionFormulaPK implements Serializable {
    
    private String artcod;    
    private String formul;

    public ComprosicionFormulaPK() {
    }

    public ComprosicionFormulaPK(String artcod, String formul) {
        
        this.artcod = artcod;
        this.formul = formul;
    }

    public String getartcod() {
        return artcod;
    }

    public void setartcod(String artcod) {
        this.artcod = artcod;
    }

    public String getformul() {
        return formul;
    }

    public void setformul(String formul) {
        this.formul = formul;
    }
    
    @Override
    public int hashCode() {
        int hash = 0;        
        hash += (artcod != null ? artcod.hashCode() : 0);
        hash += (formul != null ? formul.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ComprosicionFormulaPK)) {
            return false;
        }
        ComprosicionFormulaPK other = (ComprosicionFormulaPK) object;
        
        if ((this.artcod == null && other.artcod != null) || (this.artcod != null && !this.artcod.equals(other.artcod))) {
            return false;
        }
        if ((this.formul == null && other.formul != null) || (this.formul != null && !this.formul.equals(other.formul))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "isd.inventario.modelo.ST_ComprosicionformulaPK[artcod=" + artcod + ", formul=" + formul + "]";
    }

}
